package jdk5.generic;

import java.util.ArrayList;

public class TypeEraseClassEquals{
   public static void main(String[] args){
      ArrayList<Integer> ai = new ArrayList<Integer>();
      ArrayList<String> as = new ArrayList<String>();
      boolean eq = (ai.getClass() == as.getClass());
      System.out.println("Do ArrayList<Integer> and ArrayList<String> share the same class: " + eq);
   }
}
